package com.luoran.system.controller;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.luoran.system.api.domain.SysDept;
import com.luoran.system.service.ISysDeptService;


public class CellDataDemoHeadDataListenerDept implements ReadListener<SysDept> {


    private ISysDeptService sysDeptService;

    public CellDataDemoHeadDataListenerDept(ISysDeptService sysDeptService) {
        this.sysDeptService = sysDeptService;
    }

    @Override
    public void invoke(SysDept date, AnalysisContext analysisContext) {
        sysDeptService.insertLogistics(date);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

        System.out.println("--------解析完之后的方法----------");
    }
}
